package com.mall.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.bean.dto.ProductDto;
import com.mall.bean.model.Product;
import com.mall.common.utils.PageParam;
import com.mall.dao.ProductMapper;
import com.mall.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>implements ProductService {
    @Autowired
    private ProductMapper prodMapper;

    @Override
    public IPage<ProductDto> pageByTagId(Page<ProductDto> page, long tagId) {
        return prodMapper.pageByTagId(page,tagId);
    }
}
